﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class BankDetail
    {
         #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public BankDetail(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateBankDetail(this);
        }
        public void Update()
        {
            _dataObject.UpdateBankDetail(this);
        }
        public void GetBankDetailByUserId()
        {
            _dataObject.GetBankDetailByUserId(this);
        }
    }
}
